import React, { Suspense } from 'react'
import { useRoutes } from 'react-router'
import {staicRoutes} from '../router/routes'
const Index:React.FC=()=>{
    const RouterView = () =>useRoutes(staicRoutes)
     return(
        <Suspense>
            <RouterView></RouterView>
        </Suspense>
     )
}
export default Index